package com.cskaoyan.bean.bo.wjjBO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * @author wjj
 * @date 2022-12-29 17:02
 * @describe
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PromotionTopicCreateBO {

    private String content;

    Integer[] goods;

    private String picUrl;

    @Min(0)
    private BigDecimal price;

    private String readCount;

    @NotEmpty
    @Length(min = 1,max = 20)
    private String subtitle;

    @NotEmpty
    @Length(min = 1,max = 10)
    private String title;
}
